<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>

            <div id="post">

                <h3>Cadastro da Lista: #{ListaController.listaAux.titulo}</h3>

                <div id="stylized" class="myform">


<!--                    <h:outputLabel>Para: <span class="small">Selecione a Disciplina</span></h:outputLabel>
                    <h:selectOneMenu id="opcao">
                        <f:selectItem itemLabel="Para um Aluno" />
                        <f:selectItem itemLabel="Para uma Turma" />
                    </h:selectOneMenu>-->

                    <h:outputLabel>Disciplina: <span class="small">Selecione a Disciplina</span></h:outputLabel>
                    <h:selectOneMenu id="disciplina" value="#{ListaAlunoController.disciplinaProfessor}">
                        <f:selectItems value="#{ListaAlunoController.disciplinaProfessors}" var="disciplinaTemp" itemLabel="#{disciplinaTemp.disciplina.nome}" />
                        <f:ajax event="change" render="turma" />
                    </h:selectOneMenu>

                    <h:outputLabel>Turma: <span class="small">Selecione a Turma</span></h:outputLabel>
                    <h:selectOneMenu id="turma" value="#{ListaAlunoController.turma}">
                        <f:selectItems value="#{ListaAlunoController.turmas}" var="turmaTemp" itemLabel="#{turmaTemp.nome}" />
                    </h:selectOneMenu>


<!--                    <h:outputLabel> Avaliação: <span class="small">Selecione caso seja uma avaliação</span></h:outputLabel>
                    <h:selectBooleanCheckbox  value="{ListaAlunoController.listaAluno.avaliacao}" id="avaliacao" />-->

                    <h:outputLabel>Data de Aplicação: <span class="small">Para todos os alunos da lista</span></h:outputLabel>
                    <f:view contentType="text/html">
                        <p:calendar value="#{ListaAlunoController.listaAluno.dataAplicacao}" id="dataDaAplicacao" required="true" requiredMessage="Data é requerida" />
                    </f:view>


                    <!--                        <h:commandButton styleClass="button" onclick="dlgQuestao.show();" type="button"  value="Categoria" />-->
                    <h:commandButton styleClass="button" action="#{ListaAlunoController.setPageListaAlunoSelect}" value="Aplicar" id="Aplicar" />
<!--                    <h:commandButton styleClass="button" type="reset" value="Limpar" id="limpar" />-->


                    <!--
                                            <p:dialog header="Categoria" widgetVar="dlgQuestao" modal="true" width="300" height="400">
                                                <h:outputText>Categorias</h:outputText>
                                                <br />
                    
                                                <h:commandButton styleClass="button" action="{QuestaoController.addItem}" value="Incluir" />
                                                <h:commandButton styleClass="button" type="reset" value="Limpar" />
                    
                    
                                            </p:dialog>-->



                </div>
            </div>
        </ui:composition>

    </body>
</html>
